#ifndef TWOCOLUMNDELEGATE_H
#define TWOCOLUMNDELEGATE_H

#include <QStyledItemDelegate>

class TwoColumnDelegate  : public QStyledItemDelegate
{
    Q_OBJECT
public:
    TwoColumnDelegate(QObject *parent = nullptr);

    void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override;

    QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const override;

    void paint1(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;
    void paint2(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;
    void paint3(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;
};

#endif // TWOCOLUMNDELEGATE_H
